/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tools;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

/**
 *
 * @author dimas
 */
public class CreateTablePegawai {

    public static void main(String[] args) throws SQLException {
        Connection conn = Koneksi.open();
        Statement statement = conn.createStatement();
        String sql = "CREATE TABLE PEGAWAI\n"
                + "(\n"
                + "  USERNAME VARCHAR2(20),\n"
                + "  PASSWORD VARCHAR2(20),\n"
                + "  JABATAN VARCHAR2(20)\n"
                + ")\n";
                


        statement.executeUpdate(sql);

    }
}
